<template>
    <div>
        <div class="step">
            <el-steps :active="1" class="steps">
                <el-step title="初始化工资项" description="企业初始化后，需要手选初始化系统默认工资项配置" style="cursor: pointer" @click.native="init"></el-step>
                <el-step title="配置工资项" description="配置企业个性化工资项目"></el-step>
                <el-step title="设置人员工资档案" description="设置人员的工资档案，配置基础工资以及工资明细"></el-step>
                <el-step title="生成人员工资" description="工资核算，核算调整"></el-step>
            </el-steps>
        </div>
    </div>
</template>
<script>
import {initSalaryItemConfig} from "@/api/hrm/salaryItemConfig";
import {delSysAttachment} from "@/api/common/sysAttachment";

export default {
    name: "SalaryItemConfig",
    dicts: ['sys_yes_no'],
    data() {
        return {

        };
    },
    created() {
        
    },
    methods: {
        init(){
            this.$modal.confirm('确认要初始化系统默认工资配置项吗？').then(()=> {
                initSalaryItemConfig().then(res=>{
                    if(res.code==200){
                        this.$tab.closeOpenPage({ path: "/hrm/config/salaryItemConfig"});
                    }
                })
            })
        }
    }
};
</script>
<style lang="scss" scoped>
    .step{
        padding: 150px;
    }
</style>
